<?php

	//TODO check for dupes.

	$con = mysql_connect("localhost", "group5", "group5");
    if(!$con)
    {
		echo "Connection failed!";
        exit;
    }
	
	
	
	mysql_select_db("group5");
	
	$title = $_POST['title'];
	$descrip = $_POST['descrip'];
	
	$title = "'" . $title . "'";
	$descrip = "'" . $descrip . "'";
	
	$query = "insert into WORKSHOP (title,workshopDescription) VALUES ($title,$descrip)";
	
	echo $query;
	
	mysql_query($query,$con);
	
	header("Location:adminCreate.php");


?>